package com.sg.dto.biz.framework.common;


import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BaseBatchDto
 * @使用场景
 */
@Data
public class BaseBatchDto extends BaseDto implements Serializable {

    /**
     * 批次ID:
     */
    @ApiModelProperty("批次ID")
    private String batchId;

    /**
     * 批次编号:
     */
    @ApiModelProperty("批次编号")
    private String batchNumber;

    /**
     * 批次名称:
     */
    @ApiModelProperty("批次名称")
    private String batchName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 是否未来:
     */
    @ApiModelProperty("是否未来")
    private String isEditing;

    /**
     * 批次开始时间:
     */
    @ApiModelProperty("批次开始时间")
    private Date batchStartTime;

    /**
     * 批次结束时间:
     */
    @ApiModelProperty("批次结束时间")
    private Date batchEndTime;

    /**
     * 是否首次批次:
     */
    @ApiModelProperty("是否首次批次")
    private String isFirst;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 归属对象ID
     */
    @ApiModelProperty("归属对象ID")
    private String ascriptionObjectId;

    /**
     * 用途类型编码 ORG:组织架构 STATION_TYPE:岗位类型
     */
    @ApiModelProperty("用途类型编码")
    private String purposeTypeCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BaseBatchDto that = (BaseBatchDto) o;
        return batchId == that.batchId && batchNumber == that.batchNumber && batchName == that.batchName && subjectLifeCycle == that.subjectLifeCycle && isArchive == that.isArchive && isEditing == that.isEditing && batchStartTime == that.batchStartTime && batchEndTime == that.batchEndTime && isFirst == that.isFirst && operationInductionId == that.operationInductionId && operateTime == that.operateTime && ascriptionObjectId == that.ascriptionObjectId && purposeTypeCode == that.purposeTypeCode;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), batchId, batchNumber, batchName, subjectLifeCycle, isArchive, isEditing, batchStartTime, batchEndTime, isFirst, operationInductionId, operateTime, ascriptionObjectId, purposeTypeCode);
    }

}
